/*
 * @Author: caozaihui 15908754730@163.com
 * @Date: 2024-06-27 23:04:01
 * @LastEditors: caozaihui 15908754730@163.com
 * @LastEditTime: 2024-06-28 00:51:25
 * @FilePath: \YMU_forum\src\apis\upload.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import httpInstance from "@/utils/http";
export function uploadImg(data){
    const formData = new FormData()
    formData.append('img', data)
    return httpInstance({
        url:'/upload/coverImg',
        method:'post',
        data:formData
    })
}